import time
import unittest
from quote.base.userbrowser import UseBrowser
from quote.webpage.usermanager.loginpage import LoginPage
from ddt import ddt,data,file_data,unpack
@ddt()
class LoginFail(unittest.TestCase):
    def setUp(self) -> None:
        self.loginpage = LoginPage()

    def test_1_login_fail(self):
        self.loginpage.login()
        actual_text=self.loginpage.get_fail_text()
        print(actual_text)
        self.assertEqual(actual_text,"请勿非法登录！")


    def tearDown(self) -> None:
        UseBrowser.quit()
    # def test_something(self):
    #     self.assertEqual(True, False)


if __name__ == '__main__':
    unittest.main()
